# pip settings
- pipline:
    id: main
    workers: 8
    batch:
      size: 250
      delay: 100
  path:
    config: "/etc/logstash/conf.d/main/*.conf"

- pipline:
    id: apache
    workers: 8
    batch:
      size: 250
      delay: 100
  path:
    config: "/etc/logstash/conf.d/apache/*.conf

# config.reload.automatic: false

node.name: {{ node_name }}

http:
  host: "{{ network_host }}"
  port: 9600-9700

# log.level: info

path.logs: /var/log/logstash
path.data: /var/lib/logstash

# path.plugins: []

# X-Pack Monitoring
# https://www.elastic.co/guide/en/logstash/current/monitoring-logstash.html
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.username: logstash_system
xpack.monitoring.elasticsearch.password: cvaprPsnsJShSPGZ2gJb
xpack.monitoring.elasticsearch.hosts: {{ elasticsearch_hosts }}
xpack.monitoring.elasticsearch.ssl.certificate_authority: [ "certs/elastic-stack-ca.p12" ]
xpack.monitoring.elasticsearch.ssl.truststore.path: certs/elastic-certificates.p12
# xpack.monitoring.elasticsearch.ssl.truststore.password: password
# xpack.monitoring.elasticsearch.ssl.keystore.path: /path/to/file
# xpack.monitoring.elasticsearch.ssl.keystore.password: password
xpack.monitoring.elasticsearch.ssl.verification_mode: certificate
xpack.monitoring.elasticsearch.sniffing: true
xpack.monitoring.collection.interval: 10s
xpack.monitoring.collection.pipeline.details.enabled: true
#
# X-Pack Management
# https://www.elastic.co/guide/en/logstash/current/logstash-centralized-pipeline-management.html
xpack.management.enabled: true
xpack.management.pipeline.id: ["apache", "apache_logs"]
xpack.management.elasticsearch.username: logstash_system
xpack.management.elasticsearch.password: cvaprPsnsJShSPGZ2gJb
xpack.management.elasticsearch.hosts: {{ elasticsearch_hosts }}
xpack.management.elasticsearch.ssl.certificate_authority: [ "certs/elastic-stack-ca.p12" ]
xpack.management.elasticsearch.ssl.truststore.path: certs/elastic-certificates.p12
#xpack.management.elasticsearch.ssl.truststore.password: password
#xpack.management.elasticsearch.ssl.keystore.path: /path/to/file
#xpack.management.elasticsearch.ssl.keystore.password: password
xpack.management.elasticsearch.ssl.verification_mode: certificate
xpack.management.elasticsearch.sniffing: true
xpack.management.logstash.poll_interval: 5s